package com.company.factory;

public class Apple implements Fruit {

//    static void register() {
//        MyFactory.getInstance().addObjcet(Apple.class.getSimpleName(), Peer.class);
//    }

    @Override
    public String getName() {
        return "苹果";
    }

    @Override
    public int getHeavy() {
        return 10;
    }
}
